package com.customer.crm.product.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_crm_product_images")
@Alias("productImagesPojo")
public class ProductImagesPojo {
    @TableField("id")
    private Integer id;
    @TableField("product_id")
    private Integer productId;
    @TableField("is_main")
    private Integer isMain;
    @TableField("name")
    private String name;
    @TableField("save_name")
    private String saveName;
    @TableField("size")
    private String size;
    @TableField("path")
    private String path;
    @TableField(fill = FieldFill.INSERT ,value = "create_time")
    private LocalDateTime createTime;
}
